package com.computercourse.learning.client;

import com.computercourse.framework.client.CicServiceList;
import com.computercourse.framework.domain.course.TeachplanMediaPub;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @param null
 * @author Feng.Yuan
 * @description
 * @date 2020/2/1 5:07 下午
 * @return
 */
@FeignClient(value = CicServiceList.CIC_SERVICE_SEARCH)
public interface CourseSearchClient {

    /**
     * 根据课程计划id查询课程媒资
     */
    @GetMapping("/search/course/getmedia/{teachplanId}")
    TeachplanMediaPub getMedia(@PathVariable("teachplanId") String teachplanId);
}
